import request from '../index';
import { type OrderDTO } from '@/interface/order';

/**
 * 
 * @param data 
 * @returns 
 */
export const orderInfoSave = (data: OrderDTO) =>
    request({
        url: '/orderInfo/save',
        method: 'post',
        data: data
    });

export const orderList = (params: any) =>
    request({
        url: '/reserve/orderList',
        method: 'get',
        params: params
    });

export const orderDetail = (id: any) =>
    request({
        url: '/reserve/orderDetail',
        method: 'get',
        params: { id: id }
    });

export const orderCancel = (id: any) =>
    request({
        url: '/reserve/orderCancel',
        method: 'get',
        params: { id: id }
    });